<!--
 功能描述：论坛查看
 开发人：wanghw
 开发日期：2019/11/12
 -->
<template lang="pug">
  kalix-dialog.user-add(title='查看' bizKey="Message" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
    div.el-form(slot="dialogFormSlot")
      el-input(v-model="formModel.uid" type="hidden")
      el-form-item(label="评论内容" prop="messageContent" label-width="120px")
        el-input(v-model="formModel.messageContent" style="width:80%" readonly)
      el-form-item(label="评论时间" prop="messageDateTime"  v-bind:label-width="labelWidth"  align="center")
        el-input(v-model="formModel.messageDateTime" readonly)
</template>

<script type="text/ecmascript-6">
  import FormModel from './model'
  export default {
    name: 'messageView',
    data() {
      return {
        formModel: Object.assign({}, FormModel),
        labelWidth: '120px',
        newData: null,
        options: []
      }
    },
    mounted() {
      this.dataFormat()
    },
    methods: {
      dataFormat() {
        let d = new Date()
        this.newData = this.$M_FormatDate(d, 'yyyy-MM-dd hh:mm:ss')
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">

</style>
